package com.example.philosophy.lod;

//中介
public class Midder implements  MidderCompany{

    //中介公司知道房地产即可
    private  HouseCompany houseCompany;  // 依赖倒转

    public void setHouseCompany(HouseCompany houseCompany) {
        this.houseCompany = houseCompany;
    }

    @Override
    public void showMessage(String info) {
         this.houseCompany.showinfo(info);
    }
}
